/**
 * Copyright 2020 Vercel Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: url('/bg.png') no-repeat center;
  background-size: cover;
  padding: 0 var(--space-4x);
}

.hero {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-4x);
  max-width: 800px;
}

.description {
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.4;
  text-align: center;
  color: var(--secondary-color);
  max-width: 355px;
}

@media (min-width: 768px) {
  .hero {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
  }

  .description {
    font-size: 20px;
    max-width: 531px;
  }
}

.form {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

.input {
  border: none;
  width: 100%;
  background: transparent;
  outline: none;
  height: 56px;
  padding-left: 15px;
  padding-right: 15px;
  font-size: var(--text-md);
  color: #fff;
  font-family: inherit;
}

@media (min-width: 768px) {
  .input {
    width: calc(100% - var(--space-32x));
    padding-right: 0;
  }
}

.input::placeholder {
  color: var(--secondary-color);
}

.input-label {
  background-color: var(--gray);
  border-radius: var(--space-2x);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: block;
}

.input-label.focused {
  background-color: #33373c;
}

.input-label.error {
  background: red;
}

.input-label.success {
  background: #0070f3;
}

.input-text {
  display: flex;
  align-items: center;
  width: 100%;
}

.form-row {
  position: relative;
  max-width: 400px;
  width: 100%;
}

@media (min-width: 768px) {
  .form-row {
    max-width: 480px;
  }
}

.submit {
  width: 100%;
  height: 56px;
  margin-top: var(--space-4x);
  border-radius: var(--space-2x);
  border: 1px solid #fff;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  outline: none;
  font-weight: 500;
  color: #000;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .submit.register {
    width: 120px;
    height: 42px;
    margin-top: 0;
    position: absolute;
    border-radius: 5px;
    right: var(--space-2x);
    top: var(--space-2x);
  }
}

.submit.loading {
  cursor: default;
}

.submit.default:hover {
  background: black;
  color: #fff;
}

.submit.error:hover {
  background: #000;
  color: #fff;
}

.submit.default:disabled,
.submit.default:disabled:hover {
  cursor: default;
  background: var(--gray);
  border-color: var(--gray);
  color: #fff;
  justify-content: flex-start;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .form-row {
    margin: 0;
  }
}
